package com.fengzhi.web.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author fyf
 * @version v1.0
 * @Description: TODO(实体类)
 * @date 2016年10月20日 上午9:43:47
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "t_user")
public class TUser implements Serializable {
    // 用户id
    private int userId;
    //
    private int userCode;
    // 用户名
    private String username;
    // 用户密码
    private String password;
    private String remark;

    public TUser() {
    }

    public TUser(int userId, String username, String password) {
        super();
        this.userId = userId;
        this.username = username;
        this.password = password;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "user_id", unique = true, nullable = false)
    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    @Column(name = "username", length = 20)
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Column(name = "password", length = 20)
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }


    @Column(name = "user_code", length = 11)
    public int getUserCode() {
        return userCode;
    }

    public void setUserCode(int userCode) {
        this.userCode = userCode;
    }

    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
